<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
	<head>
		<link rel="stylesheet" href="<%= request.getContextPath() %>/css/normalize.css" type="text/css" />
		<link rel="stylesheet" href="<%= request.getContextPath() %>/css/rs.css" type="text/css" />
		<title>Standalone Nofriends System</title>
	</head>
	<body style="width:800px; margin:0 auto;">
		<h3>トップ画面</h3>
		<nav>
			<div class="left" style="width:300px;">
				<ul>
					<li>
						<a href="entry/input">日記を投稿する</a>
					</li>
					<li>
						<a href="logout">ログアウト</a>
					</li>
				</ul>
			</div>
		</nav>
		<div class="right" style="width:500px;">
			<c:forEach var="entry" items="${entries}">
				<div class="item error">
					<a href="entry/detail?id=<c:out value='${entry.entryId}' />"><c:out value="${entry.title}" /></a>
				</div>
			</c:forEach>
		</div>
	</body>
</html>